#include "FITKCDDataFluid.h"

using namespace Interface;


void FITKCDDataFluid::setMaterial(int nVal)
{
	setValue("Material", nVal);
}
void FITKCDDataFluid::setInitialize_Hydrostatic_Pressure(bool bVal)
{
	setValue("Initialize_Hydrostatic_Pressure", bVal);
}
void FITKCDDataFluid::setFree_Surface(double* dVal)
{
	setValue("Free_Surface_0", dVal[0]);
	setValue("Free_Surface_1", dVal[1]);
	setValue("Free_Surface_2", dVal[2]);
}
void FITKCDDataFluid::setDynamic_Viscosity(double dVal)
{
	setValue("Dynamic_Viscosity", dVal);
}
void FITKCDDataFluid::setKinematic_Viscosity(double dVal)
{
	setValue("Kinematic_Viscosity", dVal);
}
void FITKCDDataFluid::setArtificial_Viscosity(double dVal)
{
	setValue("Artificial_Viscosity", dVal);
}




int FITKCDDataFluid::getMaterial()
{
	return getValue("Material").toInt();
}
bool FITKCDDataFluid::getInitialize_Hydrostatic_Pressure()
{
	return getValue("Initialize_Hydrostatic_Pressure").toBool();
}
double* FITKCDDataFluid::getFree_Surface()
{
	double* Free_Surface = new double[3];
	Free_Surface[0] = getValue("Free_Surface_0").toDouble();
	Free_Surface[1] = getValue("Free_Surface_1").toDouble();
	Free_Surface[2] = getValue("Free_Surface_2").toDouble();
	return Free_Surface;
}
double FITKCDDataFluid::getDynamic_Viscosity()
{
	return getValue("Dynamic_Viscosity").toDouble();
}
double FITKCDDataFluid::getKinematic_Viscosity()
{
	return getValue("Kinematic_Viscosity").toDouble();
}
double FITKCDDataFluid::getArtificial_Viscosity()
{
	return getValue("Artificial_Viscosity").toDouble();
}
